<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>axios基本用法</title>
</head>

<body>
    <script type="text/javascript" src="lib/axios.js"></script>
    <script type="text/javascript">
        axios.get("http://localhost:3000/hello")
            .then((data) => {
                console.log(data)
                console.log(data.data)
            })
    </script>
</body>

</html>